#!/bin/bash
TB_NAME=`echo $1 | cut -d'.' -f1`
if [ -z "$TB_NAME" ]
then
    echo "Informe o nome do testbench"
    exit
else
    echo "Testbench="${TB_NAME}
fi

iverilog ${TB_NAME}.v
vvp a.out
gtkwave ${TB_NAME}.vcd
